package com.huanxing.cloud.security.exception;

import org.springframework.http.HttpStatus;
/**
 * method_not_allowed
 *
 * @author lijx
 * @date 2022/6/10
 */
public class MethodNotAllowedException extends HxExtendOauth2Exception {
  public MethodNotAllowedException(String msg, Throwable t) {
    super(msg, t);
  }

  @Override
  public String getOAuth2ErrorCode() {
    return "method_not_allowed";
  }

  @Override
  public int getHttpErrorCode() {
    return HttpStatus.METHOD_NOT_ALLOWED.value();
  }
}
